package com.roam.mapper;

import com.roam.DTO.SceneDetailDTO;
import com.roam.entity.scene.Scene;
import com.roam.mgdb.MongoUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
public class SceneInfoMapper {

    @Autowired
    private MongoUtils mongoUtils;


    public Scene getSceneBySceneDetailDTO(SceneDetailDTO sceneDetailDTO) {
        Scene scene = mongoUtils.getScene(sceneDetailDTO.getCity(), sceneDetailDTO.getSceneID());
        return scene;
    }
}
